package com.china08.yxyapi.entity.mg.sws;

import javax.persistence.Id;

import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import com.china08.yxyapi.entity.mg.MongoBaseEntityNoId;

/**
 * 学校相册--中的图片， 每张图片存储一条数据
 * 
 * @author Richard Wang
 * 
 */
@Document(collection = "yxy.sws.albums.image")
public class SwsAlbumsImage extends MongoBaseEntityNoId {

    /**
     * 
     */
    private static final long serialVersionUID = 1562193939302994003L;

    /**
     * 图片的id
     */
    @Id
    private String id;

    @Indexed
    @Field(value = "school_id")
    private String schoolId;

    /**
     * 相册id
     */
    @Indexed
    @Field(value = "album_id")
    private String albumId;

    /**
     * 图片路径
     */
    @Field(value = "image_path")
    private String imagePath;

    /** 排列序号 **/
    @Field(value = "order_num")
    private Integer orderNum = 100;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getAlbumId() {
        return albumId;
    }

    public void setAlbumId(String albumId) {
        this.albumId = albumId;
    }

    public String getImagePath() {
        return imagePath;
    }

    public void setImagePath(String imagePath) {
        this.imagePath = imagePath;
    }

    public Integer getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    public String getSchoolId() {
        return schoolId;
    }

    public void setSchoolId(String schoolId) {
        this.schoolId = schoolId;
    }

}
